import moment from 'moment';

import { MAX_CAN_WITH_DRAW_TIME } from './constant';

export const test = (): void => {};

export const canWithDraw = (sendTime: string): boolean => {
  const sendUnix = moment(sendTime).unix();
  const currentUnix = moment().unix();
  return currentUnix - sendUnix < MAX_CAN_WITH_DRAW_TIME;
};
